package com.zzedu.dto;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.PageDTO;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.Date;
import java.util.List;
import java.util.Map;

/**
 * (教育-学校)收费订单_付款对象 zz_charge_order_pay
 * 
 * @author Mr.Wang
 * @date 2025-10-18
 */
public class ZzChargeOrderPayDTO implements Serializable
{
    private static final long serialVersionUID = 1L;
    /** id */

    private Long id;
    /** 计费开始日期 */

    private LocalDateTime startDate;
    /** 计费结束日期 */

    private LocalDateTime endDate;
    /** 学校ID */
    private Long schoolId;
    /** 实际付款金额(分) */
    private BigDecimal amount;
    /** 收款确认人 */
    private Long doUserId;
    /** 收款备注 */
    private String doRemark;
    /** 付费状态 1-未付款 0-已付款 */
    private Integer payState;
    /** 收款确认时间 */

    private LocalDateTime doTime;
    /** 添加时间 */

    private LocalDateTime gmtCreate;
    /** 更新时间 */

    private Date gmtModify;
    /** 逻辑删除(0：未删除 1：id) */
    private Integer deleted;
    /** 创建人 */
    private Long createBy;
    /** 修改人 */
    private Long updateBy;
    /** 计费年月 */
    private String calcMonth;
    /** 学生数 */
    private Long stuNum;
    /** 新增学生数量 */
    private Long addStuNum;
    /** 新增学生金额 */
    private BigDecimal addStuAmount;
    /** 续费学生数量 */
    private Long renewStuNum;
    /** 续费学生金额 */
    private BigDecimal renewStuAmount;
    /** 续费类型 */
    private Integer renewType;
    /** 实际付款 */
    private BigDecimal actAmount;
    private Map<String, Object> params;
    /**
     * 当前记录起始索引
     */
    private Long pageNum = 1l;

    /**
     * 每页显示记录数
     */
    private Long pageSize = 20l;

    /**
     * 排序列
     */
    private String orderByColumn;

    /**
     * 排序的方向desc或者asc
     */
    private String isAsc = "asc";
    private List<Long> schoolIdArray;


    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setStartDate(LocalDateTime startDate) 
    {
        this.startDate = startDate;
    }

    public LocalDateTime getStartDate() 
    {
        return startDate;
    }
    public void setEndDate(LocalDateTime endDate) 
    {
        this.endDate = endDate;
    }

    public LocalDateTime getEndDate() 
    {
        return endDate;
    }
    public void setSchoolId(Long schoolId) 
    {
        this.schoolId = schoolId;
    }

    public Long getSchoolId() 
    {
        return schoolId;
    }
    public void setAmount(BigDecimal amount) 
    {
        this.amount = amount;
    }

    public BigDecimal getAmount() 
    {
        return amount;
    }
    public void setDoUserId(Long doUserId) 
    {
        this.doUserId = doUserId;
    }

    public Long getDoUserId() 
    {
        return doUserId;
    }
    public void setDoRemark(String doRemark) 
    {
        this.doRemark = doRemark;
    }

    public String getDoRemark() 
    {
        return doRemark;
    }
    public void setPayState(Integer payState) 
    {
        this.payState = payState;
    }

    public Integer getPayState() 
    {
        return payState;
    }
    public void setDoTime(LocalDateTime doTime) 
    {
        this.doTime = doTime;
    }

    public LocalDateTime getDoTime() 
    {
        return doTime;
    }
    public void setGmtCreate(LocalDateTime gmtCreate) 
    {
        this.gmtCreate = gmtCreate;
    }

    public LocalDateTime getGmtCreate() 
    {
        return gmtCreate;
    }
    public void setGmtModify(Date gmtModify) 
    {
        this.gmtModify = gmtModify;
    }

    public Date getGmtModify() 
    {
        return gmtModify;
    }
    public void setDeleted(Integer deleted) 
    {
        this.deleted = deleted;
    }

    public Integer getDeleted() 
    {
        return deleted;
    }
    public void setCreateBy(Long createBy) 
    {
        this.createBy = createBy;
    }

    public Long getCreateBy() 
    {
        return createBy;
    }
    public void setUpdateBy(Long updateBy) 
    {
        this.updateBy = updateBy;
    }

    public Long getUpdateBy() 
    {
        return updateBy;
    }
    public void setCalcMonth(String calcMonth) 
    {
        this.calcMonth = calcMonth;
    }

    public String getCalcMonth() 
    {
        return calcMonth;
    }
    public void setStuNum(Long stuNum) 
    {
        this.stuNum = stuNum;
    }

    public Long getStuNum() 
    {
        return stuNum;
    }
    public void setAddStuNum(Long addStuNum) 
    {
        this.addStuNum = addStuNum;
    }

    public Long getAddStuNum() 
    {
        return addStuNum;
    }
    public void setAddStuAmount(BigDecimal addStuAmount) 
    {
        this.addStuAmount = addStuAmount;
    }

    public BigDecimal getAddStuAmount() 
    {
        return addStuAmount;
    }
    public void setRenewStuNum(Long renewStuNum) 
    {
        this.renewStuNum = renewStuNum;
    }

    public Long getRenewStuNum() 
    {
        return renewStuNum;
    }
    public void setRenewStuAmount(BigDecimal renewStuAmount) 
    {
        this.renewStuAmount = renewStuAmount;
    }

    public BigDecimal getRenewStuAmount() 
    {
        return renewStuAmount;
    }
    public void setRenewType(Integer renewType) 
    {
        this.renewType = renewType;
    }

    public Integer getRenewType() 
    {
        return renewType;
    }
    public void setActAmount(BigDecimal actAmount) 
    {
        this.actAmount = actAmount;
    }

    public BigDecimal getActAmount() 
    {
        return actAmount;
    }


    public Long getPageNum() {
        return pageNum;
    }

    public void setPageNum(Long pageNum) {
        this.pageNum = pageNum;
    }

    public Long getPageSize() {
        return pageSize;
    }

    public void setPageSize(Long pageSize) {
        this.pageSize = pageSize;
    }

    public String getOrderByColumn() {
        return orderByColumn;
    }

    public void setOrderByColumn(String orderByColumn) {
        this.orderByColumn = orderByColumn;
    }

    public String getIsAsc() {
        return isAsc;
    }

    public void setIsAsc(String isAsc) {
        this.isAsc = isAsc;
    }

    public Map<String, Object> getParams() {
        return params;
    }

    public void setParams(Map<String, Object> params) {
        this.params = params;
    }

    public IPage getPageDTO() {
        return PageDTO.of(getPageNum(), getPageSize());
    }

    public List<Long> getSchoolIdArray() {
        return schoolIdArray;
    }

    public void setSchoolIdArray(List<Long> schoolIdArray) {
        this.schoolIdArray = schoolIdArray;
    }

    @Override
    public String toString() {
        return ToStringBuilder.reflectionToString(this, ToStringStyle.JSON_STYLE);
    }
}
